<template>
	<view class="main">
		<view class="title">视频去水印</view>
		<textarea v-model="douyin_url" placeholder="请输入DY视频链接，支持DY网页版链接"></textarea>
		<view class="flex align between tips">
			<view>如何获取DY视频链接？</view>
			<view>查看历史</view>
		</view>
		<view class="btns" @click="toSubmit()">一键去水印</view>
	</view>
</template>

<script>
	import {
		videoDownloadNomark
	} from '@/api/apiData.js';
	export default {
		data() {
			return {
				douyin_url:''
			};
		},
		onLoad() {

		},
		methods: {
			async toSubmit() {
				const result = await videoDownloadNomark({
					douyin_url: this.douyin_url
				})
				if (result.code == 1) {
					uni.showToast({
						title: result.msg,
						icon:'none'
					})
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.main {
		padding: 30rpx;

		.title {
			font-size: 32rpx;
			font-weight: bold;
			margin-bottom: 30rpx;
			color: #333333;
		}

		textarea {
			padding: 24rpx 30rpx;
			font-size: 24rpx;
			background: white;
			border: solid 1rpx #333333;
		}

		.tips {
			font-size: 24rpx;
			margin-top: 20rpx;

			view:nth-child(1) {
				border-bottom: solid 1rpx;
			}
		}

		.btns {
			background: #2D2D2D;
			border-radius: 8rpx;
			color: white;
			font-size: 32rpx;
			padding: 30rpx 132rpx;
			width: fit-content;
			margin: 66rpx auto;
		}
	}
</style>